<?php $this->pageTitle = 'Cancel Payment Voucher'; ?>
<?php
$this->breadcrumbs = array(
	'Payment Vouchers' => array('/paymentVoucher/index'),
	'#' . $paymentVoucher->payment_number => array('/paymentVoucher/view', 'id' => $paymentVoucher->id),
	'Cancel'
);
?>
<div class="flat_area">
    <?php
    $form = $this->beginWidget('PsActiveForm', array(
        'id' => 'cancel-paymentVoucher-form',
        'action' => $this->createUrl('paymentVoucher/delete', array('id' => $paymentVoucher->id, 'confirm' => true)),
        'enableAjaxValidation' => false,
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validationDelay' => 200,
            'inputContainer' => 'tr',
            'validateOnSubmit' => true,
            'validateOnChange' => false,
        )
            ));
    ?>
    <div class="main-title no-border">
        <h1>Cancel Payment Voucher</h1>
    </div>
    <div class="grid_16 relative">
        <table class="form-table">
            <tr>
                <td>
                    <strong>Please enter a reason for canceling:</strong><br/>
                    <?php echo $form->textarea($paymentVoucher, 'delete_reason', array('style' => 'width: 100%;')); ?>
                    <?php echo $form->error($paymentVoucher, 'delete_reason'); ?></strong>
                </td>
            </tr>
        </table>
    </div>
    <div class="grid_16 relative">
        <button type="submit" class="link-button red no-margin with-icon" id="btnFinish">
            <span>Cancel Payment Voucher</span>
        </button>
    </div>
    <?php $this->endWidget(); ?>
</div>
